package org.ithang.system.sysLog.service;

import java.util.List;
import java.util.Map;
import org.ithang.system.sysLog.mapper.SysLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;
import org.ithang.tools.model.Pager;
import org.ithang.tools.database.ModelDao;
import org.ithang.system.sysLog.bean.SysLog;

/**
 * 系统日志 服务
 * @author zyt
 *
 */
@Service
public class SysLogService extends ModelDao<SysLog>{

    @Autowired
    private SysLogMapper sysLogMapper;

    private Logger logger = Logger.getLogger(SysLogService.class);
    
    public void add(SysLog sysLog){
        sysLogMapper.add(sysLog);
    }
    
    public SysLog get(Long id){
        return sysLogMapper.get(id);
    }
    
    public int delete(Long id){
        return sysLogMapper.delete(id);
    }
    
    public int batchDelete(String[] ids){
    	return sysLogMapper.batchDelete(ids);
    }
    
    public List<SysLog> list(Long... ids){
    	return sysLogMapper.list(ids);
    }
    
    public List<SysLog> page(Pager<SysLog> page){
    	return sysLogMapper.page(page);
    }
    
    public List<SysLog> query(Map<String,Object> conditions){
    	return sysLogMapper.query(conditions);
    }
    
    public int update(SysLog sysLog){
    	return sysLogMapper.update(sysLog);
    }
    
    
}